//停车费历史 by KB

let lf = liefeng,
    doAction = lf.appJs.doAction;

let Container = React.createClass({
    toDetail(){
        doAction('property-parking-history-detail.html','历史停车费')
    },
    render(){
        return(
            <div className="parking-history">
                <div className="list" onTouchEnd={this.toDetail}>
                    <div>粤888888</div>
                    <div>
                        <p className="price">￥12.00</p>
                        <p className="time">16.06.28 10:28</p>
                    </div>
                </div>
                <div className="list">
                    <div>粤888888</div>
                    <div>
                        <p className="price">￥18.00</p>
                        <p className="time">16.06.28 09:28</p>
                    </div>
                </div>
            </div>
        )
    }
})

lf.bridgeJs.getUser(function (user){
    console.log(user)
    React.render(
        <Container user={user} />,
        document.getElementById('root'), function () {
            $('#root').css('background', 'none');
        }
    )
})
